
#ifndef _MEMBER_BCAPSULE_H_
#define _MEMBER_BCAPSULE_H_

#include <BCapsule>

#define capsule_member(capsule)		((member_BCapsule*)((BCapsule*)capsule)->_ptr)

namespace BWE
{
	class member_BCapsule
	{
	public:
		member_BCapsule(BCapsule* capsule);
		~member_BCapsule();

		void prepare();
		void rebuild();

		BCapsule*		boss;
		BReal			height;
		BReal			radius;
		int				sides;
		int				heightSegments;
		int				radiusSegments;
		BRealArray		sines;
		BRealArray		coses;
		int				flankSize;
		int				topBegin;
		int				topSize;
		int				bottomBegin;
		int				bottomSize;
	};
}

#endif